import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import ArcoVue from '@arco-design/web-vue';
import {
    ActionBar, ActionBarIcon, ActionBarButton, Space, Col, Row, NavBar, Button,
    Collapse, CollapseItem, Slider ,Cell, CellGroup,Stepper
} from 'vant';
import '@arco-design/web-vue/dist/arco.css';
import {init} from './js/on_start.js'
import axios from "axios";


init()

if (process.env.NODE_ENV === 'development') {
    axios.interceptors.request.use(config => {
        config.withCredentials = true;
        return config;
    }, error => {
        return Promise.reject(error);
    });
}

createApp(App).use(router)
    .use(ArcoVue)
    .use(ActionBar).use(ActionBarIcon).use(ActionBarButton)
    .use(Space).use(Col).use(Row).use(NavBar).use(Button)
    .use(Collapse).use(CollapseItem).use(Slider).use(Cell).use(CellGroup)
    .use(Stepper)
    .mount('#app');

